/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.system.bajlam.code.model;

import com.system.bajlam.code.dao.DaoException;
import com.system.bajlam.code.dao.DaoFacturacion;

/**
 *
 * @author Eliu
 */
public class ModelFacturacion {

    public void crearNuevaFactura() throws ModelException {
        try {
            // logica para almacenar una factura
            DaoFacturacion dao = new DaoFacturacion();
            dao.crearFacturaEncabezado();
            // for
            dao.crearFacturaDetalle();
            //  end
            // si factura al credito
            dao.guardarFacturaCredito();
        } catch (DaoException e) {
            throw new ModelException();
        }
    }
}
